package cn.kgc.service.Impl;

import cn.kgc.mapper.MembersInfoMapper;
import cn.kgc.pojo.MembersInfo;
import cn.kgc.service.MembersInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("membersInfoService")
public class MembersInfoServiceImpl implements MembersInfoService {

    @Autowired
    MembersInfoMapper membersInfoMapper;

    @Override
    public List<MembersInfo> getMembersInfoList(Integer id) {
        return membersInfoMapper.getMembersInfoList(id);
    }

    @Override
    public int deleteMembersInfoById(Integer id) {
        return membersInfoMapper.deleteMembersInfoById(id);
    }

    @Override
    public int updateMembersInfo(MembersInfo membersInfo) {
        return membersInfoMapper.updateMembersInfo(membersInfo);
    }
}
